﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title @if (ViewBag.Title != String.Empty && ViewBag.Title != null)
                          {<text>- </text>}GTRI Webwise</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />

    @Styles.Render("~/Content/foundation/css")
    @Scripts.Render("~/bundles/foundationmodernizr")
    @Styles.Render("~/Content/MyStyle.css")

    <script>
        var ROOT = '@Url.Content("~/")';
    </script>

    <!--
            @Scripts.Render("~/bundles/jquery", "~/bundles/jqueryui")
            @Styles.Render("~/Content/themes/custom")

            @Scripts.Render("~/bundles/jMenu")
        

        

            <script>
                $(function () {
                    $("#tabs").tabs();
                });

                $(function () {
                    $("#accordion").accordion();
                });
            </script>


        -->
</head>
<body>

    <div class="fixed">
        <nav class="top-bar">
            <ul class="title-area">
                <!-- Title -->
                <li class="name">
                    <h1>
                        <!--<a href="@Url.Action("Index", "Home")"><img src="@Url.Content("~/Content/images/Home.png")" /></a>-->
                        @Html.ActionLink("WebWISE", "Index", "Home")

                    </h1>
                </li>

                <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>

            </ul>

            <section class="top-bar-section">
                <ul class="left">
                    <li class="divider"></li>

                    <li>@Html.ActionLink("Research Support", "Index", "ResearchSupport")</li>
                    <li class="divider"></li>

                    <li class="has-dropdown">@Html.ActionLink("Reports & Tools", "Index", "ReportsTools")
                        <ul class="dropdown">
                            <li class="has-dropdown"><a href="#">Contractual Tools</a>
                                <ul class="dropdown">
                                    <li>@Html.ActionLink("Requests", "ContractualToolsRequests", "ReportsTools")</li>
                                    <li class="has-dropdown"><a href="#">Deliverables Schedule</a>
                                        <ul class="dropdown">
                                            <li>@Html.ActionLink("Upcoming Deliverables", "UpcomingDeliverables", "ReportsTools")</li>
                                            <li>@Html.ActionLink("Late Deliverables", "LateDeliverables", "ReportsTools")</li>
                                        </ul>

                                    </li>
                                    <li>@Html.ActionLink("OSP Systems", "OspSystems", "ReportsTools")</li>
                                </ul>
                            </li>
                            <li>@Html.ActionLink("Fiscal Tools", "FiscalTools", "ReportsTools")</li>
                            <li>@Html.ActionLink("Human Resources Tools", "HumanResourcesTools", "ReportsTools")</li>
                            <li>@Html.ActionLink("Services Tools", "ServicesTools", "ReportsTools")</li>

                        </ul>
                    </li>
                    <li class="divider"></li>

                    <li class="has-dropdown">@Html.ActionLink("User Tools", "Index", "UserTools")
                        <ul class="dropdown">
                            <li>@Html.ActionLink("eTime", "eTime", "UserTools")</li>
                            <li>@Html.ActionLink("eTime Review", "eTimeReview", "UserTools")</li>
                            <li>@Html.ActionLink("Forms", "Forms", "UserTools")</li>
                            <li class="has-dropdown"><a href="#">GTRI Services</a>
                                <ul class="dropdown">
                                    <li>@Html.ActionLink("Store", "Store", "UserTools")</li>
                                    <li>@Html.ActionLink("Online Meetings", "OnlineMeetings", "UserTools")</li>
                                    <li>@Html.ActionLink("Email", "Email", "UserTools")</li>
                                    <li>@Html.ActionLink("Library Services & Databases", "LibraryServices", "UserTools")</li>
                                </ul>
                            </li>
                            <li class="has-dropdown"><a href="#">Systems</a>
                                <ul class="dropdown">
                                    <li>@Html.ActionLink("SharePoint", "SharePoint", "UserTools")</li>
                                    <li>@Html.ActionLink("StarTrak", "StarTrak", "UserTools")</li>
                                    <li>@Html.ActionLink("Techworks", "Techworks", "UserTools")</li>
                                    <li>@Html.ActionLink("Buzzmart", "Buzzmart", "UserTools")</li>
                                    <li>@Html.ActionLink("Travel Center", "TravelCenter", "UserTools")</li>
                                </ul>

                            </li>
                        </ul>
                    </li>
                    <li class="divider"></li>

                    <li class="has-dropdown"><a href="#">Inside GTRI</a>
                        <ul class="dropdown">
                            <li>@Html.ActionLink("About GTRI", "About", "InsideGtri")</li>
                            <li>@Html.ActionLink("Director's Corner", "Director", "InsideGtri")</li>
                            <li>@Html.ActionLink("Corporate Initiative", "CorporateInitiative", "InsideGtri")</li>
                            <li>@Html.ActionLink("Ethics and Compliance", "EthicsCompliance", "InsideGtri")</li>
                            <li>@Html.ActionLink("Laboratories", "Laboratories", "InsideGtri")</li>
                            <li class="has-dropdown"><a href="#">Support Units</a>
                                <ul class="dropdown">
                                    <li>@Html.ActionLink("Budget and Finance", "BudgetAndFinance", "InsideGtri")</li>
                                    <li>@Html.ActionLink("Career Management", "CareerManagement", "InsideGtri")</li>
                                    <li>@Html.ActionLink("Communications", "Communications", "InsideGtri")</li>
                                    <li>@Html.ActionLink("Cost Accounting", "CostAccounting", "InsideGtri")</li>
                                    <li>@Html.ActionLink("Enterprise Systems", "EnterpriseSystems", "InsideGtri")</li>
                                    <li>@Html.ActionLink("Human Resource Support", "HumanResourceSupport", "InsideGtri")</li>
                                    <li>@Html.ActionLink("Information Services", "InformationServices", "InsideGtri")</li>
                                    <li>@Html.ActionLink("Machine Services", "MachineServices", "InsideGtri")</li>
                                    <li>@Html.ActionLink("Research Property Department", "ResearchPropertyDepartment", "InsideGtri")</li>
                                    <li>@Html.ActionLink("Research Security Department", "ResearchSecurityDepartment", "InsideGtri")</li>
                                    <li>@Html.ActionLink("Sponsored Projects and Accounting", "SponsoredProjectsAndAccounting", "InsideGtri")</li>
                                    <li>@Html.ActionLink("Support Services Department", "SupportServicesDepartment", "InsideGtri")</li>
                                </ul>
                            </li>
                            <li>@Html.ActionLink("Policies and Procedures", "PoliciesProcedures", "InsideGtri")</li>
                            <li>@Html.ActionLink("Project Management Process", "ProjectManagement", "InsideGtri")</li>
                        </ul>

                    </li>
                    <li class="divider"></li>

                    <li class="has-dropdown"><a href="#">My Links</a>
                        <ul class="dropdown">
                            @foreach (var item in Model.MyLinks)
                            {
                                <li><a href="@item.URL">@item.Name</a></li>
                            }
                            <li class="divider" id="myLinksDivider"></li>
                            <li><a href="#" id="AddLink" onClick="addLink('@ViewBag.Title','@Request.Url.AbsoluteUri')">Add Current Page</a></li>
                            <li>@Html.ActionLink("Manage My Links", "ManageLinks", "MyLinks")</li>
                        </ul>
                    </li>
                    <li class="divider"></li>

                    <li class="has-dropdown"><a href="#">Help</a>
                        <ul class="dropdown">
                            <li>@Html.ActionLink("Table of Contents", "helpContents", "HowTo")</li>
                            <li>@Html.ActionLink("Search for an Article", "helpSearch", "HowTo")</li>
                        </ul>
                    </li>
                    <li class="divider"></li>

                </ul>

                <ul class="right">
                    <li class="divider hide-for-small"></li>
                    <li class="has-form">
                        <form>
                            <div class="row collapse">
                                <div class="small-8 columns">
                                    <input type="text">
                                </div>
                                <div class="small-4 columns">
                                    <a href="#" class="button">Search</a>
                                </div>
                            </div>
                        </form>

                    </li>

                </ul>


            </section>
        </nav>
    </div>

    <!--
        <div class="cookie-crumbs">
            <img src="@Url.Content("~/Content/images/CookieCrumbs.png")" />    
            
        </div>
            -->

    <div class="row maincontent">
        <section class="content-wrapper main-content clear-fix">
            <div class="small-12 columns">
                @RenderBody()
                <!--This is where the Index view is called. -->
            </div>
        </section>
    </div>

    <footer>
    </footer>


    <!--Foundation Initialization -->
    <!-- It's extremely wonky, but it's the way Foundation says to do it -->
    <script>
        document.write('<script src=@Url.Content("~/Content/foundation/js/vendor/")'
          + ('__proto__' in {} ? 'zepto' : 'jquery')
          + '.js><\/script>');
    </script>

    @Scripts.Render("~/bundles/foundation")

    <script id="loadFoundation">
        $(document).foundation();
    </script>

    @Scripts.Render("~/bundles/linktargeter")

    <script>
        function addLink(name, url) {
            $.ajax({
                url: "@Url.Action("AddLink", "Home")",
                data: { Name: name, Url: url },
                success: function (data) {
                    if (data == '1') {
                        $('#myLinksDivider').before('<li><a href="' + url + '">' + name + '</a></li>');
                    }
                }
            });
        }
    </script>

</body>
</html>
